<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<%@ taglib prefix="sitemesh" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<!DOCTYPE html>
<html>
<head>
	<title><sitemesh:title default="欢迎光临"/> </title>
	<link rel="stylesheet" type="text/css" href="${ctxStatic}/IDH/css/exhibition/exhibition_head.css" />
	<script src="${ctxStatic}/IDH/js/rem.js" type="text/javascript" charset="utf-8"></script>
	<%@include file="/WEB-INF/views/modules/cms/front/include/head.jsp" %>
	<!-- Baidu tongji analytics --><script>var _hmt=_hmt||[];(function(){var hm=document.createElement("script");hm.src="//hm.baidu.com/hm.js?82116c626a8d504a5c0675073362ef6f";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s);})();</script>
	<sitemesh:head/>
</head>
<body>
	<!-- old head -->
	<div class="navbar navbar-fixed-top hide" style="position:static;margin-bottom:10px;">
       <div class="container ">
         <c:choose>
  			<c:when test="${not empty site.logo}">
  				<img alt="${site.title}" src="${site.logo}" class="container" onclick="location='${ctx}/index-${site.id}${fns:getUrlSuffix()}'">
  			</c:when>
  			<c:otherwise>
  				<%-- <a class="brand" href="${ctx}/index-${site.id}${fns:getUrlSuffix()}">${site.title}</a> --%>
  				<a class="navbar-brand" href="${ctx}/index-${site.id}${fns:getUrlSuffix()}"><img src="${ctxStatic}/IDH/images/JS-LOGO.png"></a>
  			</c:otherwise>
  		  </c:choose>
         <div class="nav-collapse">
           <ul id="main_nav" class="nav nav-pills">
            	<li class="${not empty isIndex && isIndex ? 'active' : ''}"><a href="${ctx}/index-1${fns:getUrlSuffix()}"><span>${site.id eq '1'?'首　 页':'返回主站'}</span></a></li>
			<c:forEach items="${fnc:getMainNavList(site.id)}" var="category" varStatus="status"><c:if test="${status.index lt 6}">
                   <c:set var="menuCategoryId" value=",${category.id},"/>
	    		<li class="${requestScope.category.id eq category.id||fn:indexOf(requestScope.category.parentIds,menuCategoryId) ge 1?'active':''}"><a href="${category.url}" target="${category.target}"><span>${category.name}</span></a></li>
	    	</c:if></c:forEach>
		    <li id="siteSwitch" class="dropdown">
		       	<a class="dropdown-toggle" data-toggle="dropdown" href="#" title="站点"><i class="icon-retweet"></i></a>
				<ul class="dropdown-menu">
				  <c:forEach items="${fnc:getSiteList()}" var="site"><li><a href="#" onclick="location='${ctx}/index-${site.id}${urlSuffix}'">${site.title}</a></li></c:forEach>
				</ul>
			</li>
	    	<li id="themeSwitch" class="dropdown">
		       	<a class="dropdown-toggle" data-toggle="dropdown" href="#" title="主题切换"><i class="icon-th-large"></i></a>
			    <ul class="dropdown-menu">
			      <c:forEach items="${fns:getDictList('theme')}" var="dict"><li><a href="#" onclick="location='${pageContext.request.contextPath}/theme/${dict.value}?url='+location.href">${dict.label}</a></li></c:forEach>
			    </ul>
			    <!--[if lte IE 6]><script type="text/javascript">$('#themeSwitch').hide();</script><![endif]-->
		    </li>
           </ul>
           <form class="navbar-form pull-right" action="${ctx}/search" method="get">
             	<input type="hidden" name="q" maxlength="20" style="width:65px;" placeholder="全站搜索..." value="${q}">
           </form>
         </div><!--/.nav-collapse -->
       </div>
    </div>
    <!-- now  head -->
    <div class="navbar-wrapper">
			<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
				<div class="container padding-0">
					<div class="navbar-header page-scroll nav_h col-md-3 col-xs-12">
						<a href="${ctx}/index-1${fns:getUrlSuffix()}">
							<img src="${ctxStatic}/IDH/images/JS-LOGO.png" />
						</a>
						<div class=" pull-right lang visible-xs-block text-right">
							<div class="">
								 <c:forEach items="${fnc:getSiteList()}" var="site">
									 <a href="#" onclick="location='${ctx}/index-${site.id}${urlSuffix}'" class="switcha">${site.title}</a>
								 </c:forEach>
							</div>
							<div class="">
								<button class="btn btn-primary"><a href="${ctx}/front/index"><img src="${ctxStatic}/IDH/images/eihidition/shop-icon.png">商城</a></button>
							</div>
						</div>
					</div>
					<div id="navbar" class="col-md-9 col-xs-12">
						<ul id="main_nav" class="nav-head col-md-8">
							<c:forEach items="${fnc:getMainNavList(site.id)}" var="category" varStatus="status">
								<c:if test="${status.index lt 6}">
				                    <c:set var="menuCategoryId" value=",${category.id},"/>
						    		<li class="${requestScope.category.id eq category.id||fn:indexOf(requestScope.category.parentIds,menuCategoryId) ge 1?'active':''}"><a href="${category.url}" target="${category.target}"><span>${category.name}</span></a>
										<%-- <ul class="nav-son">
											<c:forEach items="${fnc:getSiteList()}" var="site"><li><a href="#" onclick="location='${ctx}/index-${site.id}${urlSuffix}'">${site.title}</a></li></c:forEach>
										</ul> --%>
									</li>
						    	</c:if>
					    	</c:forEach>
					    	<li class="hidden"><span id="username">${user.username}</span></li>
						    <li id="siteSwitch" class="dropdown hide">
						       	<a class="dropdown-toggle" data-toggle="dropdown" href="#" title="站点"><i class="icon-retweet"></i></a>
								<ul class="dropdown-menu">
								  <c:forEach items="${fnc:getSiteList()}" var="site"><li><a href="#" onclick="location='${ctx}/index-${site.id}${urlSuffix}'">${site.title}</a></li></c:forEach>
								</ul>
							</li>
					    	<li id="themeSwitch" class="dropdown hide">
						       	<a class="dropdown-toggle" data-toggle="dropdown" href="#" title="主题切换"><i class="icon-th-large"></i></a>
							    <ul class="dropdown-menu">
							      <c:forEach items="${fns:getDictList('theme')}" var="dict"><li><a href="#" onclick="location='${pageContext.request.contextPath}/theme/${dict.value}?url='+location.href">${dict.label}</a></li></c:forEach>
							    </ul>
							    <!--[if lte IE 6]><script type="text/javascript">$('#themeSwitch').hide();</script><![endif]-->
						    </li>
			           </ul>
			           <div class="col-md-4 text-right lang hidden-xs">
							<div class="col-md-12">
								 <c:forEach items="${fnc:getSiteList()}" var="site">
									 <a href="#" onclick="location='${ctx}/index-${site.id}${urlSuffix}'" class="switcha">${site.title}</a>
								 </c:forEach>
							</div>
							<div class="col-md-12">
								<a class="btn btn-primary" href="${ctx}/front/index"><img src="${ctxStatic}/IDH/images/eihidition/shop-icon.png">商城</a>
							</div>
						</div>
					</div>
				</div>
			</nav>
		</div>
	<div class="container" id="container" style="">
		<sitemesh:body/>
    </div> <!-- /container -->
    <footer>
	   <p class="text-center">©2016 <a href="#">上海霁圣电子科技有限公司</a>   <a href="#" target="_blank">沪ICP备16053480号-1</a></p>
		<div class="wechat icon-div">
			<a id="wechatBtn" class="iconBtn">
				<span class="btn-title wechat-title"><img src="${ctxStatic}/IDH/images/erweima.jpg" /><span class="dot-right"></span></span>
			</a>
		</div>
		<div class="phone icon-div">
			<a id="phoneBtn" class="iconBtn">
				<span class="btn-title phone-title back-color-blue">021-60292066<span class="dot-right"></span></span>
			</a>
		</div>
		<script src="https://www.sobot.com/chat/frame/js/entrance.js?sysNum=3ea0f6535c594bd8aa0b0c50d74c8f7c" class="zhiCustomBtn" id="zhichiScript" data-args="属性名1=属性值1&属性名2=属性值2"></script>
    </footer>
</body>
<script>
	var height= $(window).height();
	var width = $(window).width();
	if(width>720){
		height = height-270 + "px"
		$("#container").css("min-height",height );
	}else {
		height = height -211 + "px"
		$("#container").css("min-height",height);
	}
</script>
</html>